
package com.eshop.we.business.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.baomidou.mybatisplus.plugins.Page;
import com.eshop.we.business.BaseBusinessImpl;
import com.eshop.we.business.UserBusiness;
import com.eshop.we.user.api.UserService;
import com.eshop.we.user.dto.UserBooksDto;
import com.eshop.we.user.dto.UserInfoDto;
import com.eshop.we.user.entity.User;
import org.springframework.stereotype.Service;

/**
 * @author wangzhanguo
 * @create 2018-06-04 15:31
 **/
@Service
public class UserBusinessImpl extends BaseBusinessImpl<User,UserService> implements UserBusiness{
    @Reference
    private UserService userService;

    @Override
    public UserBooksDto selectUserBooks(Integer userId) {
        return userService.selectUserBooks(userId);
    }

    @Override
    public Integer updateByOpenId(User user) {
        return userService.updateByOpenId(user);
    }

    @Override
    public Page selectUserPage(Page<UserInfoDto> page, String name,String mobile, String schoolName, String startDate, String endDate) throws Exception{
        return userService.selectUserPage(page,name,mobile,schoolName,startDate,endDate);
    }

    @Override
    public UserInfoDto getUserInfo(Integer userId) {
        return userService.getUserInfo(userId);
    }

}

